using System;
using System.ComponentModel;
using System.Data;
using System.Collections.Generic;

namespace PlacementManager
{
    public partial class LinkStudentCampusComponent
    {
		//
		// TODO: Add constructor logic here
		//

        /// <summary>
        /// Updates a row in the database table based on the primary key by passing the values of each column as parameters.
        /// </summary>
        /// <returns>Boolean</returns>
        [DataObjectMethodAttribute(DataObjectMethodType.Update, true)]
        public bool UpdateEnrolledCampus(string UserName, int CampusId, string UpdatedBy)
        {
            PlacementManager.DAL.LinkStudentCampus_DAL oLinkStudentCampus = new PlacementManager.DAL.LinkStudentCampus_DAL();
            oLinkStudentCampus.UserName = UserName;
            oLinkStudentCampus.CampusId = CampusId;
            oLinkStudentCampus.UpdatedBy = UpdatedBy;

            return oLinkStudentCampus.UpdateEnrolledCampus();
        }
	}
}
